package com.shigen.demo.referer.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
@ConfigurationProperties(prefix = "refer")
@Data
public class ReferConfig {
    /**
     * 是否开启防盗链拦截
     */
    private boolean enabled;
    /**
     * 允许的Referer请求
     */
    private List<String> allowedOrigins;

}
